#ifndef SETOWNAVATARTASK_H_
#define SETOWNAVATARTASK_H_

#include "Task.h"

namespace Impp
{

class SetOwnAvatarTask : public Task
{
private:
	wxString avatarFile;
	byte hash[16];
	bool reuqestSent;
	
public:
	SetOwnAvatarTask(Oscar* oscar, dword requestId, const wxString & avatarFile);
	virtual ~SetOwnAvatarTask();
	void srvExtStatus(byte* avatarHash);
	void srvIconUploadAck(byte* avatarHash);
	
private:
	void timedOut();
	void sendRequest();
	bool checkForTimeOut(const time_t & now);


};


}

#endif /*SETOWNAVATARTASK_H_*/
